package com.kukudexin.AdvanceThread.logThread;

/**
 * @author: 酷酷的鑫
 * @Date: 14:07
 * @description:
 */
public class Thread03 {
    public static void main(String[] args) {

        MayiktCallable mayiktCallable = new MayiktCallableImpl();
        MayiktFutureTask<Integer> mayiktFutureTask = new MayiktFutureTask<Integer>(mayiktCallable);
        new Thread(mayiktFutureTask).start();
        Integer result = mayiktFutureTask.get();
        System.out.println(result);
    }
}
